package com.dto.merchant;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

public class Level2DTO implements Serializable,Comparable<Level2DTO> {

	private static final long serialVersionUID = 4063136715921988545L;
	private Integer l2Id;
	private String l2Name;
	private List<Level3DTO> level3Tables = new ArrayList<Level3DTO>(0);
	private Level1DTO level1dto;

	/**
	 * @return the l2Id
	 */
	public Integer getL2Id() {
		return l2Id;
	}

	/**
	 * @param l2Id
	 *            the l2Id to set
	 */
	public void setL2Id(Integer l2Id) {
		this.l2Id = l2Id;
	}

	/**
	 * @return the l2Name
	 */
	public String getL2Name() {
		return l2Name;
	}

	/**
	 * @param l2Name
	 *            the l2Name to set
	 */
	public void setL2Name(String l2Name) {
		this.l2Name = l2Name;
	}

	/**
	 * @return the level3Tables
	 */
	public List<Level3DTO> getLevel3Tables() {
		return level3Tables;
	}

	/**
	 * @param level3Tables
	 *            the level3Tables to set
	 */
	public void setLevel3Tables(List<Level3DTO> level3Tables) {
		this.level3Tables = level3Tables;
	}

	/**
	 * @return the level1dto
	 */
	public Level1DTO getLevel1dto() {
		return level1dto;
	}

	/**
	 * @param level1dto
	 *            the level1dto to set
	 */
	public void setLevel1dto(Level1DTO level1dto) {
		this.level1dto = level1dto;
	}

	@Override
	public int compareTo(Level2DTO obj) {
		return this.l2Name.compareTo(obj.getL2Name());
	}

	
}
